package latin.pojo;

import lombok.Getter;

@Getter
public class Java {
    private Long id;//java问题的id
    private String question;//java问题
    private String answer;//答案

    public Java(Long id, String question, String answer) {
        this.id = id;
        this.question = question;
        this.answer = answer;
    }
    public Java() {
        super();
    }

    public void setId(Long id) {
        this.id = id;
    }
    public void setQuestion(String question) {
        this.question = question == null ? null : question.trim();
    }
    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }
}